/*
 * @Description: vscode自带注释
 * @Version: 2.0
 * @Autor: lhl
 * @Date: 2020-11-28 20:35:34
 * @LastEditors: lhl
 * @LastEditTime: 2021-08-21 20:30:00
 */
import Vue from "vue";
import Vuex from "vuex";
import VuexPersistence from "vuex-persist";
import lang from "./modules/lang"; // 普通模式导入每个模块

Vue.use(Vuex);

const vuexLocal = new VuexPersistence({
  storage: window.localStorage,
});
const store = new Vuex.Store({
  modules: {
    lang,
  },
  plugins: [vuexLocal.plugin],
});
export default store;
